package com.fitso.model.bean.measure.energy;

import java.math.BigDecimal;

public class Joule extends Energy {
	private static final long serialVersionUID = 1L;
	
	private static final BigDecimal FROM_BASE = BigDecimal.valueOf(1000);
	private static final BigDecimal TO_BASE = BigDecimal.valueOf(.001);

	public Joule() {
		super();
	}

	public Joule(Integer value) {
		super(value);
	}

	public Joule(Double value) {
		super(value);
	}

	public Joule(BigDecimal value) {
		super(value);
	}

	public Joule(Energy energy) {
		super(energy);
	}

	protected BigDecimal getFromBaseUnitFactor() {
		return FROM_BASE;
	}

	protected BigDecimal getToBaseUnitFactor() {
		return TO_BASE;
	}

	public String getUnitMark() {
		return "joules";
	}
}
